Add management and locking of PCI device structures
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 4 Jul 2008 16:52:24 +0000 (17:52 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 4 Jul 2008 16:52:24 +0000 (17:52 +0100)
commitffd9d82c69e26b9c2b3bac6ec769b77dffa06e60
treea1c64623a57828dcd84f5b48a004cea46a469056
parentf800030ddb9dc9b85bf5ab28af612d85b4638c71
Add management and locking of PCI device structures

Add functions for managing pci_dev structures.  Create a list
containing all current pci_devs.  Remove msi_pdev_list.  Create a
read-write lock protecting all pci_dev lists.  Add spinlocks for
pci_dev access.  Do necessary modifications to MSI code.

Signed-off-by: Espen Skoglund <espen.skoglund@netronome.com>
xen/arch/x86/i8259.c
xen/arch/x86/msi.c
xen/arch/x86/physdev.c
xen/drivers/passthrough/Makefile
xen/drivers/passthrough/amd/pci_amd_iommu.c
xen/drivers/passthrough/iommu.c
xen/drivers/passthrough/pci.c [new file with mode: 0644]
xen/drivers/passthrough/vtd/iommu.c
xen/include/asm-x86/msi.h
xen/include/xen/iommu.h
xen/include/xen/pci.h